package com.holly.unit.deform.modular.pojo;

import com.holly.unit.core.pojo.request.BaseRequest;
import com.holly.unit.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @Description: 
 * @Author: holly
 * @Date:   2022-03-03
 * @Version: V1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DesignFormUrlAuthRequest extends BaseRequest {

	/**修改人*/
    @NotNull(message = "updateUser不能为空")
    @ChineseDescription("修改人")
	private String updateUser;
	/**创建人*/
    @NotNull(message = "createUser不能为空")
    @ChineseDescription("创建人")
	private String createUser;
	/**链接状态（1=有效，2=无效）*/
    @NotNull(message = "urlStatus不能为空")
    @ChineseDescription("链接状态（1=有效，2=无效）")
	private Long urlStatus;
	/**链接类型*/
    @NotNull(message = "urlType不能为空")
    @ChineseDescription("链接类型")
	private String urlType;
	/**表单CODE*/
    @NotNull(message = "desformCode不能为空")
    @ChineseDescription("表单CODE")
	private String desformCode;
	/**表单ID*/
    @NotNull(message = "desformId不能为空")
    @ChineseDescription("表单ID")
	private String desformId;
	/**id*/
	@NotNull(message = "id不能为空", groups = {add.class, edit.class, delete.class})
    @ChineseDescription("id")
	private String id;


	/**
         * 参数校验分组：增加
         */
        public @interface add {
        }

        /**
         * 参数校验分组：编辑
         */
        public @interface edit {
        }

        /**
         * 参数校验分组：删除
         */
        public @interface delete {
        }

        /**
         * 参数校验分组：详情
         */
        public @interface detail {
        }

        /**
         * 参数校验分组：导出
         */
        public @interface export {
        }
}
